.class public Les/uk0;
.super Ljava/lang/Object;
.source "AdEventHandler.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/uk0$b;
    }
.end annotation


# direct methods
.method private constructor <init>()V
    .locals 0

    .line 2
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Les/uk0$a;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/uk0;-><init>()V

    return-void
.end method

.method public static a()Les/uk0;
    .locals 1

    .line 1
    invoke-static {}, Les/uk0$b;->a()Les/uk0;

    move-result-object v0

    return-object v0
.end method

.method private a(Les/nj0;)Lorg/json/JSONObject;
    .locals 3

    .line 94
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v1, "download_url"

    .line 95
    invoke-virtual {p1}, Les/nj0;->q()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "package_name"

    .line 96
    invoke-virtual {p1}, Les/nj0;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "android_int"

    .line 97
    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "rom_name"

    .line 98
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/i;->f()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "rom_version"

    .line 99
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/i;->g()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 100
    invoke-virtual {p1}, Les/nj0;->h()Lorg/json/JSONObject;

    move-result-object p1

    invoke-static {p1, v0}, Les/cl0;->a(Lorg/json/JSONObject;Lorg/json/JSONObject;)Lorg/json/JSONObject;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-object v0
.end method

.method private a(Les/zi0;)Lorg/json/JSONObject;
    .locals 3

    .line 87
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v1, "download_url"

    .line 88
    invoke-interface {p1}, Les/zi0;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "package_name"

    .line 89
    invoke-interface {p1}, Les/zi0;->t()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "android_int"

    .line 90
    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "rom_name"

    .line 91
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/i;->f()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "rom_version"

    .line 92
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/i;->g()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 93
    invoke-interface {p1}, Les/zi0;->w()Lorg/json/JSONObject;

    move-result-object p1

    invoke-static {p1, v0}, Les/cl0;->a(Lorg/json/JSONObject;Lorg/json/JSONObject;)Lorg/json/JSONObject;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-object v0
.end method

.method private a(Les/fj0;)V
    .locals 1

    .line 101
    invoke-static {}, Les/lk0;->b()Les/li0;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 102
    :cond_0
    invoke-virtual {p1}, Les/fj0;->e()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 103
    invoke-static {}, Les/lk0;->b()Les/li0;

    move-result-object v0

    invoke-interface {v0, p1}, Les/li0;->a(Les/fj0;)V

    goto :goto_0

    .line 104
    :cond_1
    invoke-static {}, Les/lk0;->b()Les/li0;

    move-result-object v0

    invoke-interface {v0, p1}, Les/li0;->b(Les/fj0;)V

    :goto_0
    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;JILes/zi0;Les/yi0;)V
    .locals 5

    .line 71
    :try_start_0
    new-instance v0, Les/fj0$a;

    invoke-direct {v0}, Les/fj0$a;-><init>()V

    const/4 v1, 0x2

    new-array v2, v1, [Ljava/lang/String;

    const/4 v3, 0x0

    aput-object p1, v2, v3

    const-string p1, "embeded_ad"

    const/4 v4, 0x1

    aput-object p1, v2, v4

    .line 72
    invoke-static {v2}, Les/cl0;->a([Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/fj0$a;->a(Ljava/lang/String;)Les/fj0$a;

    .line 73
    invoke-virtual {v0, p2}, Les/fj0$a;->b(Ljava/lang/String;)Les/fj0$a;

    .line 74
    invoke-interface {p7}, Les/zi0;->r()Z

    move-result p1

    invoke-virtual {v0, p1}, Les/fj0$a;->b(Z)Les/fj0$a;

    .line 75
    invoke-interface {p7}, Les/zi0;->d()J

    move-result-wide p1

    invoke-virtual {v0, p1, p2}, Les/fj0$a;->a(J)Les/fj0$a;

    .line 76
    invoke-interface {p7}, Les/zi0;->s()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/fj0$a;->c(Ljava/lang/String;)Les/fj0$a;

    .line 77
    invoke-virtual {v0, p4, p5}, Les/fj0$a;->b(J)Les/fj0$a;

    .line 78
    invoke-interface {p8}, Les/yi0;->a()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/fj0$a;->d(Ljava/lang/String;)Les/fj0$a;

    .line 79
    invoke-interface {p7}, Les/zi0;->v()Ljava/util/List;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/fj0$a;->a(Ljava/util/List;)Les/fj0$a;

    new-array p1, v1, [Lorg/json/JSONObject;

    .line 80
    invoke-direct {p0, p7}, Les/uk0;->a(Les/zi0;)Lorg/json/JSONObject;

    move-result-object p2

    aput-object p2, p1, v3

    aput-object p3, p1, v4

    invoke-static {p1}, Les/cl0;->a([Lorg/json/JSONObject;)Lorg/json/JSONObject;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/fj0$a;->a(Lorg/json/JSONObject;)Les/fj0$a;

    .line 81
    invoke-interface {p8}, Les/yi0;->j()Ljava/lang/Object;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/fj0$a;->a(Ljava/lang/Object;)Les/fj0$a;

    .line 82
    invoke-virtual {v0, p6}, Les/fj0$a;->a(I)Les/fj0$a;

    .line 83
    invoke-interface {p8}, Les/yi0;->m()Z

    move-result p1

    invoke-virtual {v0, p1}, Les/fj0$a;->a(Z)Les/fj0$a;

    .line 84
    invoke-virtual {v0}, Les/fj0$a;->a()Les/fj0;

    move-result-object p1

    .line 85
    invoke-direct {p0, p1}, Les/uk0;->a(Les/fj0;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 86
    invoke-static {p1}, Les/cl0;->a(Ljava/lang/Throwable;)V

    :goto_0
    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/zi0;Les/yi0;)V
    .locals 9

    .line 70
    invoke-interface {p4}, Les/zi0;->e()J

    move-result-wide v4

    const/4 v6, 0x2

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object v7, p4

    move-object v8, p5

    invoke-direct/range {v0 .. v8}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;JILes/zi0;Les/yi0;)V

    return-void
.end method

.method private b(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V
    .locals 5

    .line 3
    :try_start_0
    new-instance v0, Les/fj0$a;

    invoke-direct {v0}, Les/fj0$a;-><init>()V

    const/4 v1, 0x2

    new-array v2, v1, [Ljava/lang/String;

    const/4 v3, 0x0

    aput-object p1, v2, v3

    const-string p1, "embeded_ad"

    const/4 v4, 0x1

    aput-object p1, v2, v4

    .line 4
    invoke-static {v2}, Les/cl0;->a([Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/fj0$a;->a(Ljava/lang/String;)Les/fj0$a;

    .line 5
    invoke-virtual {v0, p2}, Les/fj0$a;->b(Ljava/lang/String;)Les/fj0$a;

    .line 6
    invoke-virtual {p4}, Les/nj0;->g()Z

    move-result p1

    invoke-virtual {v0, p1}, Les/fj0$a;->b(Z)Les/fj0$a;

    .line 7
    invoke-virtual {p4}, Les/nj0;->a()J

    move-result-wide p1

    invoke-virtual {v0, p1, p2}, Les/fj0$a;->a(J)Les/fj0$a;

    .line 8
    invoke-virtual {p4}, Les/nj0;->f()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/fj0$a;->c(Ljava/lang/String;)Les/fj0$a;

    .line 9
    invoke-virtual {p4}, Les/nj0;->b()J

    move-result-wide p1

    invoke-virtual {v0, p1, p2}, Les/fj0$a;->b(J)Les/fj0$a;

    .line 10
    invoke-virtual {p4}, Les/nj0;->p()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/fj0$a;->d(Ljava/lang/String;)Les/fj0$a;

    new-array p1, v1, [Lorg/json/JSONObject;

    .line 11
    invoke-direct {p0, p4}, Les/uk0;->a(Les/nj0;)Lorg/json/JSONObject;

    move-result-object p2

    aput-object p2, p1, v3

    aput-object p3, p1, v4

    invoke-static {p1}, Les/cl0;->a([Lorg/json/JSONObject;)Lorg/json/JSONObject;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/fj0$a;->a(Lorg/json/JSONObject;)Les/fj0$a;

    .line 12
    invoke-virtual {v0, v1}, Les/fj0$a;->a(I)Les/fj0$a;

    .line 13
    invoke-virtual {p4}, Les/nj0;->l()Z

    move-result p1

    invoke-virtual {v0, p1}, Les/fj0$a;->a(Z)Les/fj0$a;

    .line 14
    invoke-virtual {v0}, Les/fj0$a;->a()Les/fj0;

    move-result-object p1

    .line 15
    invoke-direct {p0, p1}, Les/uk0;->a(Les/fj0;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 16
    invoke-static {p1}, Les/cl0;->a(Ljava/lang/Throwable;)V

    :goto_0
    return-void
.end method


# virtual methods
.method public a(JI)V
    .locals 7

    .line 2
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Les/vj0;->e(J)Les/vj0$b;

    move-result-object p1

    .line 3
    invoke-virtual {p1}, Les/vj0$b;->a()Z

    move-result p2

    if-eqz p2, :cond_0

    .line 4
    invoke-static {}, Les/cl0;->b()V

    return-void

    .line 5
    :cond_0
    iget-object p2, p1, Les/vj0$b;->c:Les/yi0;

    invoke-interface {p2}, Les/yi0;->l()Z

    move-result p2

    if-nez p2, :cond_1

    return-void

    :cond_1
    const/4 p2, 0x1

    .line 6
    iget-object v0, p1, Les/vj0$b;->c:Les/yi0;

    if-ne p3, p2, :cond_2

    invoke-interface {v0}, Les/yi0;->c()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_2
    invoke-interface {v0}, Les/yi0;->b()Ljava/lang/String;

    move-result-object v0

    :goto_0
    move-object v2, v0

    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    .line 7
    iget-object v3, p1, Les/vj0$b;->c:Les/yi0;

    invoke-interface {v3}, Les/yi0;->d()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v1

    const-string v1, "click"

    aput-object v1, v0, p2

    invoke-static {v0}, Les/cl0;->a([Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 8
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string p2, "click_type"

    .line 9
    invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p3

    invoke-virtual {v4, p2, p3}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p2

    .line 10
    invoke-virtual {p2}, Lorg/json/JSONException;->printStackTrace()V

    .line 11
    :goto_1
    iget-object v5, p1, Les/vj0$b;->b:Les/zi0;

    iget-object v6, p1, Les/vj0$b;->c:Les/yi0;

    move-object v1, p0

    invoke-direct/range {v1 .. v6}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/zi0;Les/yi0;)V

    return-void
.end method

.method public a(JILes/zn0;)V
    .locals 9

    .line 12
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Les/vj0;->e(J)Les/vj0$b;

    move-result-object p1

    .line 13
    invoke-virtual {p1}, Les/vj0$b;->a()Z

    move-result p2

    if-eqz p2, :cond_0

    .line 14
    invoke-static {}, Les/cl0;->b()V

    return-void

    :cond_0
    const/4 p2, 0x0

    .line 15
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    const/4 v6, 0x1

    const/4 v0, 0x0

    const/4 v1, 0x2

    const/4 v2, 0x1

    if-eq p3, v2, :cond_6

    if-eq p3, v1, :cond_5

    const/4 v4, 0x3

    if-eq p3, v4, :cond_4

    const/4 v4, 0x4

    if-eq p3, v4, :cond_3

    const/4 v4, 0x5

    if-eq p3, v4, :cond_1

    :goto_0
    move-object v2, p2

    goto :goto_1

    :cond_1
    if-eqz p4, :cond_2

    .line 16
    :try_start_0
    invoke-virtual {p4}, Les/zn0;->N0()I

    move-result p2

    invoke-static {v3, p2}, Les/pj0;->a(Lorg/json/JSONObject;I)V

    .line 17
    invoke-static {v3, p4}, Les/pj0;->a(Lorg/json/JSONObject;Les/zn0;)Lorg/json/JSONObject;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :catchall_0
    :cond_2
    new-array p2, v1, [Ljava/lang/String;

    .line 18
    iget-object p3, p1, Les/vj0$b;->c:Les/yi0;

    invoke-interface {p3}, Les/yi0;->h()Ljava/lang/String;

    move-result-object p3

    aput-object p3, p2, v0

    const-string p3, "click_install"

    aput-object p3, p2, v2

    invoke-static {p2}, Les/cl0;->a([Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    goto :goto_0

    :cond_3
    new-array p2, v1, [Ljava/lang/String;

    .line 19
    iget-object p3, p1, Les/vj0$b;->c:Les/yi0;

    invoke-interface {p3}, Les/yi0;->g()Ljava/lang/String;

    move-result-object p3

    aput-object p3, p2, v0

    const-string p3, "click_continue"

    aput-object p3, p2, v2

    invoke-static {p2}, Les/cl0;->a([Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    goto :goto_0

    :cond_4
    new-array p2, v1, [Ljava/lang/String;

    .line 20
    iget-object p3, p1, Les/vj0$b;->c:Les/yi0;

    invoke-interface {p3}, Les/yi0;->f()Ljava/lang/String;

    move-result-object p3

    aput-object p3, p2, v0

    const-string p3, "click_pause"

    aput-object p3, p2, v2

    invoke-static {p2}, Les/cl0;->a([Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    goto :goto_0

    :cond_5
    new-array p2, v1, [Ljava/lang/String;

    .line 21
    iget-object p3, p1, Les/vj0$b;->c:Les/yi0;

    invoke-interface {p3}, Les/yi0;->e()Ljava/lang/String;

    move-result-object p3

    aput-object p3, p2, v0

    const-string p3, "click_start"

    aput-object p3, p2, v2

    invoke-static {p2}, Les/cl0;->a([Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 22
    invoke-virtual {p0, p4, v3}, Les/uk0;->a(Les/zn0;Lorg/json/JSONObject;)V

    goto :goto_0

    :cond_6
    new-array p2, v1, [Ljava/lang/String;

    .line 23
    iget-object p3, p1, Les/vj0$b;->c:Les/yi0;

    invoke-interface {p3}, Les/yi0;->i()Ljava/lang/String;

    move-result-object p3

    aput-object p3, p2, v0

    const-string p3, "storage_deny"

    aput-object p3, p2, v2

    invoke-static {p2}, Les/cl0;->a([Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    goto :goto_0

    .line 24
    :goto_1
    iget-object p2, p1, Les/vj0$b;->c:Les/yi0;

    invoke-interface {p2}, Les/yi0;->b()Ljava/lang/String;

    move-result-object v1

    iget-object p2, p1, Les/vj0$b;->b:Les/zi0;

    invoke-interface {p2}, Les/zi0;->e()J

    move-result-wide v4

    iget-object v7, p1, Les/vj0$b;->b:Les/zi0;

    iget-object v8, p1, Les/vj0$b;->c:Les/yi0;

    move-object v0, p0

    invoke-direct/range {v0 .. v8}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;JILes/zi0;Les/yi0;)V

    return-void
.end method

.method public a(JLcom/ss/android/socialbase/downloader/e/a;)V
    .locals 6

    .line 45
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Les/vj0;->e(J)Les/vj0$b;

    move-result-object p1

    .line 46
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string p2, "download_time"

    const/4 v0, 0x0

    .line 47
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v3, p2, v0}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    if-eqz p3, :cond_0

    const-string p2, "fail_status"

    .line 48
    invoke-virtual {p3}, Lcom/ss/android/socialbase/downloader/e/a;->a()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v3, p2, v0}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string p2, "fail_msg"

    .line 49
    invoke-virtual {p3}, Lcom/ss/android/socialbase/downloader/e/a;->b()Ljava/lang/String;

    move-result-object p3

    invoke-virtual {v3, p2, p3}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p2

    .line 50
    invoke-virtual {p2}, Lorg/json/JSONException;->printStackTrace()V

    .line 51
    :cond_0
    :goto_0
    iget-object p2, p1, Les/vj0$b;->c:Les/yi0;

    invoke-interface {p2}, Les/yi0;->b()Ljava/lang/String;

    move-result-object v1

    iget-object v4, p1, Les/vj0$b;->b:Les/zi0;

    iget-object v5, p1, Les/vj0$b;->c:Les/yi0;

    const-string v2, "download_failed"

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/zi0;Les/yi0;)V

    return-void
.end method

.method public a(JZI)V
    .locals 6

    .line 31
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Les/vj0;->e(J)Les/vj0$b;

    move-result-object p1

    .line 32
    invoke-virtual {p1}, Les/vj0$b;->a()Z

    move-result p2

    if-eqz p2, :cond_0

    .line 33
    invoke-static {}, Les/cl0;->b()V

    return-void

    .line 34
    :cond_0
    iget-object p2, p1, Les/vj0$b;->b:Les/zi0;

    invoke-interface {p2}, Les/zi0;->y()Les/hj0;

    move-result-object p2

    if-nez p2, :cond_1

    return-void

    .line 35
    :cond_1
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string p2, "click_type"

    .line 36
    invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p4

    invoke-virtual {v3, p2, p4}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p2

    .line 37
    invoke-virtual {p2}, Lorg/json/JSONException;->printStackTrace()V

    :goto_0
    if-eqz p3, :cond_2

    const-string p2, "deeplink_quickapp_success"

    goto :goto_1

    :cond_2
    const-string p2, "deeplink_quickapp_failed"

    :goto_1
    move-object v2, p2

    .line 38
    iget-object p2, p1, Les/vj0$b;->c:Les/yi0;

    invoke-interface {p2}, Les/yi0;->b()Ljava/lang/String;

    move-result-object v1

    iget-object v4, p1, Les/vj0$b;->b:Les/zi0;

    iget-object v5, p1, Les/vj0$b;->c:Les/yi0;

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/zi0;Les/yi0;)V

    return-void
.end method

.method public a(Les/zn0;Lcom/ss/android/socialbase/downloader/e/a;)V
    .locals 5

    if-nez p1, :cond_0

    return-void

    .line 60
    :cond_0
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    invoke-virtual {v0, p1}, Les/vj0;->a(Les/zn0;)Les/nj0;

    move-result-object v0

    if-nez v0, :cond_1

    .line 61
    invoke-static {}, Les/cl0;->b()V

    return-void

    .line 62
    :cond_1
    iget-object v1, v0, Les/nj0;->q:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z

    move-result v1

    if-eqz v1, :cond_2

    return-void

    .line 63
    :cond_2
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v2, "download_time"

    .line 64
    invoke-virtual {p1}, Les/zn0;->x0()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    if-eqz p2, :cond_3

    const-string v2, "fail_status"

    .line 65
    invoke-virtual {p2}, Lcom/ss/android/socialbase/downloader/e/a;->a()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v2, "fail_msg"

    .line 66
    invoke-virtual {p2}, Lcom/ss/android/socialbase/downloader/e/a;->b()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v1, v2, p2}, Lorg/json/JSONObject;->putOpt(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p2

    .line 67
    invoke-virtual {p2}, Lorg/json/JSONException;->printStackTrace()V

    :cond_3
    :goto_0
    const/4 p2, 0x1

    .line 68
    invoke-static {v1, p1, p2}, Les/pj0;->a(Lorg/json/JSONObject;Les/zn0;Z)Lorg/json/JSONObject;

    .line 69
    invoke-virtual {v0}, Les/nj0;->o()Ljava/lang/String;

    move-result-object p1

    const-string p2, "download_failed"

    invoke-virtual {p0, p1, p2, v1, v0}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    return-void
.end method

.method public a(Les/zn0;Lorg/json/JSONObject;)V
    .locals 3

    if-eqz p1, :cond_0

    :try_start_0
    const-string v0, "total_bytes"

    .line 39
    invoke-virtual {p1}, Les/zn0;->c0()J

    move-result-wide v1

    invoke-virtual {p2, v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "chunk_count"

    .line 40
    invoke-virtual {p1}, Les/zn0;->W()I

    move-result v1

    invoke-virtual {p2, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "app_name"

    .line 41
    invoke-virtual {p1}, Les/zn0;->P0()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v0, "network_quality"

    .line 42
    invoke-virtual {p1}, Les/zn0;->e0()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v0, "save_path"

    .line 43
    invoke-virtual {p1}, Les/zn0;->R0()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, v0, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 44
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method

.method public a(Ljava/lang/String;ILes/vj0$b;)V
    .locals 10

    .line 30
    iget-object v0, p3, Les/vj0$b;->c:Les/yi0;

    invoke-interface {v0}, Les/yi0;->b()Ljava/lang/String;

    move-result-object v2

    int-to-long v5, p2

    iget-object v8, p3, Les/vj0$b;->b:Les/zi0;

    iget-object v9, p3, Les/vj0$b;->c:Les/yi0;

    const/4 v4, 0x0

    const/4 v7, 0x2

    move-object v1, p0

    move-object v3, p1

    invoke-direct/range {v1 .. v9}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;JILes/zi0;Les/yi0;)V

    return-void
.end method

.method public a(Ljava/lang/String;J)V
    .locals 1

    .line 25
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    invoke-virtual {v0, p2, p3}, Les/vj0;->d(J)Les/nj0;

    move-result-object p2

    if-nez p2, :cond_0

    .line 26
    invoke-static {}, Les/cl0;->b()V

    return-void

    .line 27
    :cond_0
    invoke-virtual {p2}, Les/nj0;->o()Ljava/lang/String;

    move-result-object p3

    const/4 v0, 0x0

    invoke-direct {p0, p3, p1, v0, p2}, Les/uk0;->b(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    return-void
.end method

.method public a(Ljava/lang/String;Les/nj0;)V
    .locals 2

    if-nez p2, :cond_0

    .line 54
    invoke-static {}, Les/cl0;->b()V

    return-void

    .line 55
    :cond_0
    invoke-virtual {p2}, Les/nj0;->o()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-direct {p0, v0, p1, v1, p2}, Les/uk0;->b(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    return-void
.end method

.method public a(Ljava/lang/String;Les/vj0$b;)V
    .locals 7
    .param p2    # Les/vj0$b;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 29
    iget-object v0, p2, Les/vj0$b;->c:Les/yi0;

    invoke-interface {v0}, Les/yi0;->b()Ljava/lang/String;

    move-result-object v2

    iget-object v0, p2, Les/vj0$b;->b:Les/zi0;

    invoke-interface {v0}, Les/zi0;->w()Lorg/json/JSONObject;

    move-result-object v4

    iget-object v5, p2, Les/vj0$b;->b:Les/zi0;

    iget-object v6, p2, Les/vj0$b;->c:Les/yi0;

    move-object v1, p0

    move-object v3, p1

    invoke-direct/range {v1 .. v6}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/zi0;Les/yi0;)V

    return-void
.end method

.method public a(Ljava/lang/String;Les/zi0;Les/yi0;)V
    .locals 6
    .param p2    # Les/zi0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # Les/yi0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 28
    invoke-interface {p3}, Les/yi0;->b()Ljava/lang/String;

    move-result-object v1

    invoke-interface {p2}, Les/zi0;->w()Lorg/json/JSONObject;

    move-result-object v3

    move-object v0, p0

    move-object v2, p1

    move-object v4, p2

    move-object v5, p3

    invoke-direct/range {v0 .. v5}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/zi0;Les/yi0;)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Les/nj0;)V
    .locals 1

    if-nez p3, :cond_0

    .line 52
    invoke-static {}, Les/cl0;->b()V

    return-void

    :cond_0
    const/4 v0, 0x0

    .line 53
    invoke-direct {p0, p1, p2, v0, p3}, Les/uk0;->b(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V
    .locals 0
    .param p4    # Les/nj0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 56
    invoke-direct {p0, p1, p2, p3, p4}, Les/uk0;->b(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    return-void
.end method

.method public a(Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V
    .locals 1

    if-nez p3, :cond_0

    .line 57
    invoke-static {}, Les/cl0;->b()V

    return-void

    :cond_0
    const-string v0, "embeded_ad"

    .line 58
    invoke-direct {p0, v0, p1, p2, p3}, Les/uk0;->b(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    return-void
.end method

.method public a(Lorg/json/JSONObject;Les/nj0;)V
    .locals 2
    .param p2    # Les/nj0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 59
    invoke-virtual {p2}, Les/nj0;->o()Ljava/lang/String;

    move-result-object v0

    const-string v1, "download_finish"

    invoke-direct {p0, v0, v1, p1, p2}, Les/uk0;->b(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    return-void
.end method

.method public b(JI)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, p1, p2, p3, v0}, Les/uk0;->a(JILes/zn0;)V

    return-void
.end method

.method public b(Lorg/json/JSONObject;Les/nj0;)V
    .locals 2
    .param p2    # Les/nj0;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 2
    invoke-virtual {p2}, Les/nj0;->o()Ljava/lang/String;

    move-result-object v0

    const-string v1, "install_finish"

    invoke-direct {p0, v0, v1, p1, p2}, Les/uk0;->b(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    return-void
.end method
